package Multithreading.DeadLock;

/**
 * ClassName:Thread
 * Package:Multithreading.DeadLock
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/3/5-21:18
 * @Version:v1.0
 */
public class ThreadDome {
    public static void main(String[] args) {
        /*死锁*/
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();

        t1.setName("线程A");
        t2.setName("线程B");

        t1.start();
        t2.start();

    }
}
